﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace SecurityApp
{
    /// <summary>
    /// Interaction logic for Detail.xaml
    /// </summary>
    public partial class Detail : Window
    {
        public static bool IsOpen { get; private set; }

        public Detail(BitmapImage origineel, BitmapImage versleuteld, WriteableBitmap verschil)
        {
            InitializeComponent();
            IsOpen = true;

            picFotoOrigineel.ImageSource = origineel;
            picFotoVerschil.ImageSource = verschil;
            picFotoVersleuteld.ImageSource = versleuteld;
        }

        private void Window_Closing_1(object sender, System.ComponentModel.CancelEventArgs e)
        {
            picFotoVersleuteld.ImageSource = null;
            picFotoVerschil.ImageSource = null;
            picFotoOrigineel.ImageSource = null;
            IsOpen = false;
        }

    }
}
